.class Lcom/waiqin365/h5/department/a;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/waiqin365/h5/department/WqDepartmentSelect;


# direct methods
.method constructor <init>(Lcom/waiqin365/h5/department/WqDepartmentSelect;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/h5/department/a;->a:Lcom/waiqin365/h5/department/WqDepartmentSelect;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 8

    const/4 v7, 0x1

    const v6, 0x7f08072f

    const/4 v5, 0x0

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/h5/department/a;->a:Lcom/waiqin365/h5/department/WqDepartmentSelect;

    invoke-virtual {v0, v1}, Ljava/util/Observable;->addObserver(Ljava/util/Observer;)V

    new-instance v1, Lcom/waiqin365/lightwork/directory/b/v;

    invoke-direct {v1}, Lcom/waiqin365/lightwork/directory/b/v;-><init>()V

    iget-object v0, p0, Lcom/waiqin365/h5/department/a;->a:Lcom/waiqin365/h5/department/WqDepartmentSelect;

    invoke-static {v0}, Lcom/waiqin365/h5/department/WqDepartmentSelect;->a(Lcom/waiqin365/h5/department/WqDepartmentSelect;)Lorg/apache/cordova/CordovaArgs;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/h5/department/a;->a:Lcom/waiqin365/h5/department/WqDepartmentSelect;

    invoke-static {v0}, Lcom/waiqin365/h5/department/WqDepartmentSelect;->a(Lcom/waiqin365/h5/department/WqDepartmentSelect;)Lorg/apache/cordova/CordovaArgs;

    move-result-object v0

    invoke-virtual {v0, v5}, Lorg/apache/cordova/CordovaArgs;->isNull(I)Z

    move-result v0

    if-nez v0, :cond_0

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/h5/department/a;->a:Lcom/waiqin365/h5/department/WqDepartmentSelect;

    invoke-static {v0}, Lcom/waiqin365/h5/department/WqDepartmentSelect;->a(Lcom/waiqin365/h5/department/WqDepartmentSelect;)Lorg/apache/cordova/CordovaArgs;

    move-result-object v0

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Lorg/apache/cordova/CordovaArgs;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v0, "title"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/h5/department/a;->a:Lcom/waiqin365/h5/department/WqDepartmentSelect;

    const-string/jumbo v3, "title"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v0, v3}, Lcom/waiqin365/h5/department/WqDepartmentSelect;->a(Lcom/waiqin365/h5/department/WqDepartmentSelect;Ljava/lang/String;)Ljava/lang/String;

    :goto_0
    const-string/jumbo v0, "exitingMembers"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string/jumbo v0, "exitingMembers"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightwork/directory/b/v;->e:Ljava/lang/String;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_1
    new-instance v0, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/h5/department/a;->a:Lcom/waiqin365/h5/department/WqDepartmentSelect;

    invoke-static {v2}, Lcom/waiqin365/h5/department/WqDepartmentSelect;->b(Lcom/waiqin365/h5/department/WqDepartmentSelect;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v2

    const-class v3, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectMultiModeActivity;

    invoke-direct {v0, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iput-boolean v7, v1, Lcom/waiqin365/lightwork/directory/b/v;->i:Z

    iget-object v2, p0, Lcom/waiqin365/h5/department/a;->a:Lcom/waiqin365/h5/department/WqDepartmentSelect;

    invoke-static {v2}, Lcom/waiqin365/h5/department/WqDepartmentSelect;->b(Lcom/waiqin365/h5/department/WqDepartmentSelect;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v2

    invoke-virtual {v2, v6}, Lorg/apache/cordova/WqCordovaActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightwork/directory/b/v;->f:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/h5/department/a;->a:Lcom/waiqin365/h5/department/WqDepartmentSelect;

    invoke-static {v2}, Lcom/waiqin365/h5/department/WqDepartmentSelect;->b(Lcom/waiqin365/h5/department/WqDepartmentSelect;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v2

    invoke-virtual {v2, v6}, Lorg/apache/cordova/WqCordovaActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightwork/directory/b/v;->g:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/h5/department/a;->a:Lcom/waiqin365/h5/department/WqDepartmentSelect;

    iget-object v2, v2, Lcom/waiqin365/h5/department/WqDepartmentSelect;->a:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightwork/directory/b/v;->d:Ljava/lang/String;

    iput v7, v1, Lcom/waiqin365/lightwork/directory/b/v;->m:I

    iput-boolean v5, v1, Lcom/waiqin365/lightwork/directory/b/v;->k:Z

    const-string/jumbo v2, "param"

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/h5/department/a;->a:Lcom/waiqin365/h5/department/WqDepartmentSelect;

    invoke-static {v1}, Lcom/waiqin365/h5/department/WqDepartmentSelect;->b(Lcom/waiqin365/h5/department/WqDepartmentSelect;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v1

    invoke-virtual {v1, v0}, Lorg/apache/cordova/WqCordovaActivity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/h5/department/a;->a:Lcom/waiqin365/h5/department/WqDepartmentSelect;

    invoke-static {v0}, Lcom/waiqin365/h5/department/WqDepartmentSelect;->b(Lcom/waiqin365/h5/department/WqDepartmentSelect;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v0

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lorg/apache/cordova/WqCordovaActivity;->overridePendingTransition(II)V

    return-void

    :cond_1
    :try_start_1
    iget-object v0, p0, Lcom/waiqin365/h5/department/a;->a:Lcom/waiqin365/h5/department/WqDepartmentSelect;

    iget-object v3, p0, Lcom/waiqin365/h5/department/a;->a:Lcom/waiqin365/h5/department/WqDepartmentSelect;

    invoke-static {v3}, Lcom/waiqin365/h5/department/WqDepartmentSelect;->b(Lcom/waiqin365/h5/department/WqDepartmentSelect;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v3

    const v4, 0x7f08072f

    invoke-virtual {v3, v4}, Lorg/apache/cordova/WqCordovaActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v0, v3}, Lcom/waiqin365/h5/department/WqDepartmentSelect;->a(Lcom/waiqin365/h5/department/WqDepartmentSelect;Ljava/lang/String;)Ljava/lang/String;
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_1
.end method
